package com.tengju.bff.interfaces.covercharge.constant;


public enum CustTaskQueueCmdEnum {

    WITHDRAWAL("withdrawal","提现业务"),
    ;

    private String code;
    private String desc;

    CustTaskQueueCmdEnum(String code, String desc){
        this.code=code;
        this.desc=desc;
    }
    public String getCode(){
        return this.code;
    }
    public String getDesc(){
        return this.desc;
    }

    public static CustTaskQueueCmdEnum getByCode (String code){
        for(CustTaskQueueCmdEnum accountTypeEnum : (CustTaskQueueCmdEnum.values())){
            if(accountTypeEnum.getCode().equals(code)){
                return accountTypeEnum;
            }
        }
        return null;
    }
}
